﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DELVE_GAME.ViewStructure
{
    class MenuBeginReplayGameAction : GameAction
    {
        private View view;
        int stageIndex;
        int replayIndex;

        public MenuBeginReplayGameAction(View targetView, int sIndex , int rIndex)
        {
            view = targetView;
            this.stageIndex = sIndex;
            this.replayIndex = rIndex;
        }

        public override void doAction()
        {
            view.setReplayToLoad(replayIndex);
            view.buildReplayStage();
            view.gotoStage(stageIndex);
            
        }
    }
}
